import os

os.environ["HF_HOME"] = "/data1/models/.cache/huggingface"
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
    repo_type="model",
    local_dir="/data1/models/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
    resume_download=True,
    local_dir_use_symlinks=False
)
